import request from '@/utils/request'

// 查询课程分类关系列表
export function listSubject_category(query) {
  return request({
    url: '/course/subject_category/list',
    method: 'get',
    params: query
  })
}

// 查询课程分类关系详细
export function getSubject_category(id) {
  return request({
    url: '/course/subject_category/' + id,
    method: 'get'
  })
}

// 新增课程分类关系
export function addSubject_category(data) {
  return request({
    url: '/course/subject_category',
    method: 'post',
    data: data
  })
}

// 修改课程分类关系
export function updateSubject_category(data) {
  return request({
    url: '/course/subject_category',
    method: 'put',
    data: data
  })
}

// 删除课程分类关系
export function delSubject_category(id) {
  return request({
    url: '/course/subject_category/' + id,
    method: 'delete'
  })
}
